package com.wtwd.campus.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.wtwd.campus.entity.AppDisableTime;
import com.wtwd.campus.entity.MqAppDisableTime;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author mjy
 * @since 2022-12-16
 */
public interface AppDisableTimeService extends IService<AppDisableTime> {

    /**
     * 实现数据库数据与设备数据的同步,以设备数据为准
     *
     * @param deviceId
     * @param packageName
     * @param mqAppDisableTimes
     * @return
     */
    boolean synchronousData(Integer deviceId, String packageName, List<MqAppDisableTime> mqAppDisableTimes);


    List<AppDisableTime> getAppDisableTimesByDeviceIdAndPackageName(Integer deviceId, String packageName);

    boolean deleteAppDisableByDeviceIdAndPackageName(Integer deviceId, String packageName);


}
